using System;
using System.Windows.Forms;
using System.Xml;
using static System.Console;

namespace vergia
{
    public class Code
    {
        public int number;
        private char chara;

        public int get_num(char ch)
        {
            char temp_chara = 'a';
            char fin_chara = ch;
            number = fin_chara - temp_chara;
            return number;
        }

        public char get_char(int num,char ch)
        {
            //char temp ;
            int temp_num = 0;
            int fin_num = 0;
            temp_num = Convert.ToInt32(ch);
            fin_num = temp_num + num;
            while (fin_num > 122)
            {
                fin_num -= 26;
            }
            chara = Convert.ToChar(fin_num);
            return chara;
        }
    }

    public class Get
    {
        public static char[] origin_code = new char[16];
        public static char[] key = new char[16];
        public static Code[] temp_key = new Code[16];
        public static Code[] temp_final_code = new Code[16];
        public static char[] final_code = new char[16];
        public static void doo(string str_origin,string keyy)
        {
            // int units = 0;
            // units = Read();
            //ReadLine();
            for (int i = 0; i < 3; i++)
            {
                origin_code[i] = str_origin[i];
            }
            ReadLine();
            for (int i = 0; i < 3; i++)
            {
                key[i] = keyy[i];
            }
            for (int i = 0; i < 3; i++)
            {
                int temp = 0;
                temp_key[i] = new Code();
                temp_final_code[i] = new Code();
                temp = temp_key[i].get_num(key[i]);
                final_code[i] = temp_final_code[i].get_char(temp,origin_code[i]);
                //WriteLine(final_code[i]);
            }
        }

        public static string get_final_code()
        {

            string res = new string(final_code);
            return res;
        }
    }
}